import request from '@/utils/request'

// 查询指标数据填写详情列表
export function listDealIndicatorDataDetail(query) {
  return request({
    url: '/indicator/dealIndicatorDataDetail/list',
    method: 'get',
    params: query
  })
}

// 查询指标数据填写详情详细
export function getDealIndicatorDataDetail(id) {
  return request({
    url: '/indicator/dealIndicatorDataDetail/' + id,
    method: 'get'
  })
}

// 保存指标数据填写详情
export function saveDealIndicatorDataDetail(data) {
  return request({
    url: '/indicator/dealIndicatorDataDetail/save',
    method: 'post',
    data: data
  })
}

export function batchSave(data) {
  return request({
    url: '/indicator/dealIndicatorDataDetail/batchSave',
    method: 'post',
    data: data
  })
}

// 删除指标数据填写详情
export function delDealIndicatorDataDetail(id) {
  return request({
    url: '/indicator/dealIndicatorDataDetail/' + id,
    method: 'delete'
  })
}

// 导出指标数据填写详情
export function exportDealIndicatorDataDetail(query) {
  return request({
    url: '/indicator/dealIndicatorDataDetail/export',
    method: 'get',
    params: query
  })
}

// 登录
export function interfaceLogin(data) {
  return request({
    url: '/indicatorLogin',
    method: 'post',
    data: data
  })
}

// 获取验证码
export function getVerificationCode(email, tenantCode) {
  return request({
    url: '/getVerificationCode?email=' + email + '&tenantCode=' + tenantCode,
    method: 'get'
  })
}

// 保存指标数据填写详情
export function interfaceSaveDetail(data) {
  return request({
    url: '/interface/indicator/saveList',
    method: 'post',
    data: data
  })
}

// 查询运营指标数据维护详细
export function getDealIndicatorDataMain(id) {
  return request({
    url: '/interface/indicator/getDealIndicatorDataMain/' + id,
    method: 'get'
  })
}

// 查询所有数据
export function getAllData(query) {
  return request({
    url: '/interface/indicator/getAllData',
    method: 'get',
    params: query
  })
}

// 查询盈利预测关键指标(模板)列表
export function listDealIndicatorPredictKey(query) {
  return request({
    url: '/interface/indicator/listDealIndicatorPredictKey',
    method: 'get',
    params: query
  })
}

// 查询指标数据填写详情列表
export function listDealIndicatorDataDetailOut(query) {
  return request({
    url: '/interface/indicator/listDealIndicatorDataDetail',
    method: 'get',
    params: query
  })
}

